<%@ page import="ecom.beans.AccountRemote"%>
<%@ page import="ecom.shell.ShellRemote"%>
<%@ page import="javax.transaction.*"%>
<%@ page import="javax.naming.Context"%>
<%@ page import="javax.naming.InitialContext"%>
<%@ page import="javax.naming.NamingException"%>

<%@ page import="java.io.*"%>
<%@ page import="javax.xml.transform.*"%>
<%@ page import="javax.xml.transform.stream.*"%>

<!-- DEBUT MENU DROITE -->
<div class="right_content">

<div id="navigation">
        
<div class="module">
<h2><span>Mon panier</span></h2>
<div class="modulecontent">
<div class="panier">

<%
//RECUPERATION DU SHELL
        ShellRemote shell = (ShellRemote) session.getAttribute("shell");

        if (shell != null) {
            //FORMATAGE DU XML
            TransformerFactory tFactory = TransformerFactory.newInstance();
            Transformer transformer = tFactory.newTransformer(new StreamSource("C://JAVA//wkspace//ecom//ecom-war//web//XSL/cart.xsl"));
            StringWriter res = new StringWriter();
            transformer.transform(
                    new StreamSource(new StringReader(shell.executeCommand("cart"))),
                    new StreamResult(res));
            out.println(res);
        }
%>

<br />
<!-- CURRENCY -->
<%
        if (shell != null) {
            TransformerFactory tFactory = TransformerFactory.newInstance();
            Transformer transformer = tFactory.newTransformer(new StreamSource("C://JAVA//wkspace//ecom//ecom-war//web//XSL/currency.xsl"));
            StringWriter res = new StringWriter();
            transformer.transform(
                    new StreamSource(new StringReader(shell.executeCommand("currency"))),
                    new StreamResult(res));
            out.println(res);
        }
%>
</div>
</div>
<div class="module_btm">&nbsp;</div>
</div>

    <jsp:include page="form_search.jsp" />
</div>
</div>
<!-- FIN MENU DROITE -->